From fd0039c34ce840743ba7013ade4a0196f4a1e956 Mon Sep 17 00:00:00 2001 From: Alan Knowles Date: Fri, 6 Nov 2015 16:41:17 +0800 Subject: [PATCH] JSDOC/ScopeParser.vala --- JSDOC/ScopeParser.vala | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/JSDOC/ScopeParser.vala b/JSDOC/ScopeParser.vala index d91ecf0..508b950 100644 --- a/JSDOC/ScopeParser.vala +++ b/JSDOC/ScopeParser.vala @@ -433,7 +433,8 @@ namespace JSDOC { // remove the quotes.. // should do a bit more checking!!!! (what about wierd char's in the string.. var str = token.data.substring(1,token.data.length-1); - if (/^[a-z_]+$/i.test(str) && ScopeParser.idents.indexOf(str) < 0) { + + if (Regex.match_simple ("^[a-z_]+$", str) && this.idents.index_of(str) < 0) { token.outData = str; } -- 2.39.2