1 line
1.4 MiB
Plaintext
1 line
1.4 MiB
Plaintext
|
{"version":3,"file":"regexr.js","sources":["../dev/lib/codemirror.js","../dev/lib/clipboard.js","../dev/lib/native.js","../dev/src/events/Event.js","../dev/src/events/EventDispatcher.js","../dev/src/utils/DOMUtils.js","../dev/src/utils/Utils.js","../dev/src/controls/Tooltip.js","../dev/src/net/Server.js","../dev/src/utils/CMUtils.js","../dev/src/utils/Track.js","../dev/src/controls/List.js","../dev/src/ExpressionLexer.js","../dev/src/views/ExpressionHighlighter.js","../dev/src/views/ExpressionHover.js","../dev/src/profiles/core.js","../dev/src/profiles/pcre.js","../dev/src/profiles/javascript.js","../dev/src/profiles/profiles.js","../dev/src/views/Expression.js","../dev/src/utils/UID.js","../dev/src/views/TextHighlighter.js","../dev/src/views/TextHover.js","../dev/src/views/Text.js","../dev/src/views/tools/Explain.js","../dev/src/views/tools/Details.js","../dev/src/views/tools/Replace.js","../dev/src/SubstLexer.js","../dev/src/views/Tools.js","../dev/src/docs/sidebar_content.js","../dev/src/controls/LinkRow.js","../dev/src/views/Example.js","../dev/src/views/Community.js","../dev/src/controls/Status.js","../dev/src/views/Account.js","../dev/src/views/Share.js","../dev/src/views/Sidebar.js","../dev/src/views/Theme.js","../dev/src/docs/Reference.js","../dev/src/docs/reference_content.js","../dev/src/helpers/BrowserSolver.js","../dev/src/helpers/ServerSolver.js","../dev/src/Flavor.js","../dev/src/RefCoverage.js","../dev/src/helpers/Prefs.js","../dev/src/RegExr.js","../dev/src/app.js"],"sourcesContent":["// CodeMirror, copyright (c) by Marijn Haverbeke and others\n// Distributed under an MIT license: http://codemirror.net/LICENSE\n\n// This is CodeMirror (http://codemirror.net), a code editor\n// implemented in JavaScript on top of the browser's DOM.\n//\n// You can find some technical background for some of the code below\n// at http://marijnhaverbeke.nl/blog/#cm-internals .\n\n(function (global, factory) {\n typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :\n typeof define === 'function' && define.amd ? define(factory) :\n (global.CodeMirror = factory());\n}(this, (function () { 'use strict';\n\n// Kludges for bugs and behavior differences that can't be feature\n// detected are enabled based on userAgent etc sniffing.\nvar userAgent = navigator.userAgent\nvar platform = navigator.platform\n\nvar gecko = /gecko\\/\\d/i.test(userAgent)\nvar ie_upto10 = /MSIE \\d/.test(userAgent)\nvar ie_11up = /Trident\\/(?:[7-9]|\\d{2,})\\..*rv:(\\d+)/.exec(userAgent)\nvar edge = /Edge\\/(\\d+)/.exec(userAgent)\nvar ie = ie_upto10 || ie_11up || edge\nvar ie_version = ie && (ie_upto10 ? document.documentMode || 6 : +(edge || ie_11up)[1])\nvar webkit = !edge && /WebKit\\//.test(userAgent)\nvar qtwebkit = webkit && /Qt\\/\\d+\\.\\d+/.test(userAgent)\nvar chrome = !edge && /Chrome\\//.test(userAgent)\nvar presto = /Opera\\//.test(userAgent)\nvar safari = /Apple Computer/.test(navigator.vendor)\nvar mac_geMountainLion = /Mac OS X 1\\d\\D([8-9]|\\d\\d)\\D/.test(userAgent)\nvar phantom = /PhantomJS/.test(userAgent)\n\nvar ios = !edge && /AppleWebKit/.test(userAgent) && /Mobile\\/\\w+/.test(userAgent)\nvar android = /Android/.test(userAgent)\n// This is woefully incomplete. Suggestions for alternative methods welcome.\nvar mobile = ios || android || /webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(userAgent)\nvar mac = ios || /Mac/.test(platform)\nvar chromeOS = /\\bCrOS\\b/.test(userAgent)\nvar windows = /win/i.test(platform)\n\nvar presto_version = presto && userAgent.match(/Version\\/(\\d*\\.\\d*)/)\nif (presto_version) { presto_version = Number(presto_version[1]) }\nif (presto_version && presto_version >= 15) { presto = false; webkit = true }\n// Some browsers use the wrong event properties to signal cmd/ctrl on OS X\nvar flipCtrlCmd = mac && (qtwebkit || presto && (presto_version == null || presto_version < 12.11))\nvar captureRightClick = gecko || (ie && ie_version >= 9)\n\nfunction classTest(cls) { return new RegExp(\"(^|\\\\s)\" + cls + \"(?:$|\\\\s)\\\\s*\") }\n\nvar rmClass = function(n
|