Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit 772b809

Browse files
committed
Should add support for data- prefix
1 parent c3f6f5a commit 772b809

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

‎main.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,11 @@ define(function (require, exports, module) {
3939
return null;
4040
}
4141

42+
// Trim the 'data-' prefix
43+
if (token.indexOf('data-')===0) {
44+
token = token.substr(5);
45+
}
46+
4247
return token.string.replace(/\-\w/g, function(x){ return x.charAt(1).toUpperCase(); });
4348
}
4449

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /