From 55f68f72be2cb69d14561353ad851d6b2242dfcc Mon Sep 17 00:00:00 2001 From: Ikko Ashimine Date: Sat, 3 Jul 2021 11:52:26 +0900 Subject: [PATCH] fix(ruby) fixed typo (#3259) --- src/languages/ruby.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/languages/ruby.js b/src/languages/ruby.js index 6c9a4b706c..16be6ec719 100644 --- a/src/languages/ruby.js +++ b/src/languages/ruby.js @@ -252,7 +252,7 @@ export default function(hljs) { }, NUMBER, { - // negative-look forward attemps to prevent false matches like: + // negative-look forward attempts to prevent false matches like: // @ident@ or $ident$ that might indicate this is not ruby at all className: "variable", begin: '(\\$\\W)|((\\$|@@?)(\\w+))(?=[^@$?])' + `(?![A-Za-z])(?![@$?'])`