Skip to content

Commit

Permalink
dataset override: add check for property being a string, fixes #132
Browse files Browse the repository at this point in the history
  • Loading branch information
ikreymer committed Feb 18, 2024
1 parent e75780e commit 34fafdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/wombat.js
Original file line number Diff line number Diff line change
Expand Up @@ -3276,7 +3276,7 @@ Wombat.prototype.overrideDataSet = function() {

var result = target[prop];

if (wombat.startsWithOneOf(result, wombat.wb_prefixes)) {
if (typeof(result) === "string" && wombat.startsWithOneOf(result, wombat.wb_prefixes)) {

Check failure on line 3279 in src/wombat.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote

Check failure on line 3279 in src/wombat.js

View workflow job for this annotation

GitHub Actions / lint

Strings must use singlequote
return wombat.extractOriginalURL(result);
}

Expand Down

0 comments on commit 34fafdc

Please sign in to comment.