Skip to content

Commit 39352cc

Browse files
author
nfrasser
committed
Merge branch 'v2.1' of https://github.com/SoapBox/linkifyjs into v2.1
2 parents ac2e443 + 2e623ea commit 39352cc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/linkify/utils/options.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ Options.prototype = {
8484
case 'function': return option(operator, token.type);
8585
case 'object':
8686
let optionValue = option[token.type] || defaults[key];
87-
return typeof optionValue === 'function' ? optionValue(operator) : optionValue;
87+
return typeof optionValue === 'function' ? optionValue(operator, token.type) : optionValue;
8888
}
8989

9090
return option;

0 commit comments

Comments
 (0)