Skip to content

Commit

Permalink
Correct function name
Browse files Browse the repository at this point in the history
  • Loading branch information
kyoshino committed Jul 2, 2024
1 parent e9902d3 commit d707aa1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/services/contents/parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ const getFrontmatterDelimiters = (format, delimiter) => {
* @param {string} text - File content.
* @returns {FrontMatterFormat} JSON, TOML or YAML front matter.
*/
const detectFrontmatterFormat = (text) => {
const detectFrontMatterFormat = (text) => {
const str = text.trim();

if (str.startsWith('{')) {
Expand Down Expand Up @@ -101,7 +101,7 @@ const parseEntryFile = ({
}) => {
format ||= /** @type {FileFormat | undefined} */ (
['md', 'markdown'].includes(extension ?? '') || path.match(/\.(?:md|markdown)$/)
? detectFrontmatterFormat(text)
? detectFrontMatterFormat(text)
: extension || Object.values(filePathMap ?? {})[0]?.match(/\.([^.]+)$/)?.[1]
);

Expand Down

0 comments on commit d707aa1

Please sign in to comment.