Fixed text sigle legacy support

Change-Id: I227b855b80bf1bc7d9c59e1d2347adfed622774b
diff --git a/dev/js/src/api.js b/dev/js/src/api.js
index 5b30870..2767015 100644
--- a/dev/js/src/api.js
+++ b/dev/js/src/api.js
@@ -24,7 +24,7 @@
     url += '/' + match.textID;
 */
 
-    var legacySigle = new RegExp('^([^_]+)_([^\.]+)\.(.+?)$');
+    var legacySigle = new RegExp('^([^_]+)_([^\\.]+)\\.(.+?)$');
 
     // This is for legacy support
     var legacy = legacySigle.exec(match.textSigle);