isPDF static method

bool isPDF(
  1. String s
)

Checks if string is an pdf file. 检查字符串是否为pdf文件

Implementation

static bool isPDF(String s) => RegexUtils.hasMatch(s, RegexConstants.pdf);