Skip to content

Commit

Permalink
Remove unnecessary raw strings
Browse files Browse the repository at this point in the history
Signed-off-by: Pranav Bedre <[email protected]>
  • Loading branch information
ghpranav committed Jul 15, 2021
1 parent 431eb7a commit e611699
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ linter:
test_types_in_equals: true
unawaited_futures: true
unnecessary_parenthesis: true
unnecessary_raw_strings: true
unnecessary_statements: true
unsafe_html: true
use_raw_strings: true
2 changes: 1 addition & 1 deletion lib/src/rules/youtube.scrapper.dart
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class YouTubeScrapper {
static WebInfo scrape(HtmlDocument doc, String url) {
try {
final id = getYoutTubeVideoId(url);
var title = RegExp(r'"title":"(.+?)"')
var title = RegExp('"title":"(.+?)"')
.firstMatch(doc.querySelector('html')?.innerHtml ?? '')
?.group(0)
?.split(':')[1]
Expand Down

0 comments on commit e611699

Please sign in to comment.