()
| 211 | } |
| 212 | |
| 213 | singleLineCommentOnlyRegex () { |
| 214 | let commentStart |
| 215 | if (this.get('codeLanguage') === 'html') { |
| 216 | commentStart = `${commentStarts.html}|${commentStarts.css}|${commentStarts.javascript}` |
| 217 | } else { |
| 218 | commentStart = commentStarts[this.get('codeLanguage')] || '#' |
| 219 | } |
| 220 | return new RegExp(`^[ \t]*(${commentStart}).*$`, 'gm') |
| 221 | } |
| 222 | } |
| 223 | LevelSession.initClass() |
| 224 | return LevelSession |
no test coverage detected