We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f0f5e56 commit f824882Copy full SHA for f824882
LrcParser/Parser/Lrc/Utils/LrcStartTimeUtils.cs
@@ -8,6 +8,19 @@ namespace LrcParser.Parser.Lrc.Utils;
8
9
public static class LrcStartTimeUtils
10
{
11
+ /// <summary>
12
+ /// Check if the line starts with a line time tag.
13
+ /// </summary>
14
+ /// <param name="line">The lyrics line in the LRC format.</param>
15
+ /// <returns>
16
+ /// <c>true</c> if the line starts with a line time tag, <c>false</c> otherwise.
17
+ /// </returns>
18
+ public static bool StartsWithLineTimeTag(string line)
19
+ {
20
+ var match = TimeTagUtils.LINE_TIME_TAG_REGEX.Match(line);
21
+ return match.Success && match.Index == 0;
22
+ }
23
+
24
/// <summary>
25
/// Split an LRC lyrics line into parsed line time tags and the lyric text.
26
/// </summary>
0 commit comments