(match)
| 282 | """ |
| 283 | |
| 284 | def strict_one_ref(match): |
| 285 | try: |
| 286 | return self._one_ref(match, relative_path_to_root) |
| 287 | except TFDocsError as e: |
| 288 | self.add_error(e.message) |
| 289 | return 'BAD_LINK' |
| 290 | |
| 291 | string = re.sub(SYMBOL_REFERENCE_RE, strict_one_ref, string) |
| 292 |