* Returns a Regular expression that can be used to detect all the variables * in a template. * @param {!{[key: string]: *}=} opt_bindings * @param {!{[key: string]: boolean}=} opt_allowlist Optional allowlist of names * that can be substituted. * @return {!RegExp}
(opt_bindings, opt_allowlist)
| 263 | * @return {!RegExp} |
| 264 | */ |
| 265 | getExpr(opt_bindings, opt_allowlist) { |
| 266 | if (!this.initialized_) { |
| 267 | this.initialize_(); |
| 268 | } |
| 269 | const all = {...this.replacements_, ...opt_bindings}; |
| 270 | return this.buildExpr_(Object.keys(all), opt_allowlist); |
| 271 | } |
| 272 | |
| 273 | /** |
| 274 | * @param {!Array<string>} keys |
no test coverage detected